from wees.models import Wee,like
from django.template import RequestContext
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response, get_object_or_404

def wee_page(request):
	wee_list = Wee.objects.all().order_by('-datetime')
	template = 'wee_page.html'
	return render_to_response(template,{'wee_list':wee_list},
		context_instance = RequestContext(request))

def wee_detail(request, wee_id):
	wee = get_object_or_404(Wee, pk=wee_id)
	template = 'wee_detail.html'
	return render_to_response(template, {'wee':wee},
		context_instance = RequestContext(request))